package net.minecraft.src;

public class RecipesTools
{
    private String recipePatterns[][] =
    {
        {
            "XXX", " # ", " # "
        }, {
            "X", "#", "#"
        }, {
            "XX", "X#", " #"
        }, {
            "XX", " #", " #"
        }
    };
    private Object recipeItems[][];

    public RecipesTools()
    {
        recipeItems = (new Object[][]
                {
        		new Object[] {
                        Block.planks, Item.ingotIron, Item.flint /*Item.diamond, Item.ingotGold, Block.cobblestone,*/ 
                    }, new Object[] {
                        Item.pickaxeWood, Item.pickaxeSteel, mod_gctools.FlintPickaxe  /*Item.pickaxeDiamond, Item.pickaxeGold, Item.pickaxeStone, */
                    }, new Object[] {
                        Item.shovelWood, Item.shovelSteel, mod_gctools.FlintSpade  /*Item.shovelDiamond, Item.shovelGold, Item.shovelStone,*/
                    }, new Object[] {
                        Item.axeWood, Item.axeSteel, mod_gctools.FlintAxe  /*Item.axeDiamond, Item.axeGold, Item.axeStone,*/ 
                    }, new Object[] {
                        Item.hoeWood, Item.hoeSteel, mod_gctools.FlintAxe  /*Item.hoeDiamond, Item.hoeGold, Item.hoeStone,*/ 
                    }
                });
    }

    /**
     * Adds tool recipes to the CraftingManager.
     */
    public void addRecipes(CraftingManager par1CraftingManager)
    {
        for (int i = 0; i < recipeItems[0].length; i++)
        {
            Object obj = recipeItems[0][i];

            for (int j = 0; j < recipeItems.length - 1; j++)
            {
                Item item = (Item)recipeItems[j + 1][i];
                par1CraftingManager.addRecipe(new ItemStack(item), new Object[]
                        {
                            recipePatterns[j], '#', Item.stick, 'X', obj
                        });
            }
        }

        par1CraftingManager.addRecipe(new ItemStack(Item.shears), new Object[]
                {
                    " #", "# ", '#', Item.ingotIron
                });
    }
}
